package com.cimstech.resources;

import org.glassfish.jersey.filter.LoggingFilter;
import org.glassfish.jersey.jackson.JacksonFeature;
import org.glassfish.jersey.media.multipart.MultiPartFeature;
import org.glassfish.jersey.server.ResourceConfig;

import javax.ws.rs.ApplicationPath;
import java.util.logging.Logger;

/**
 * Created by dyzhu on 2015/12/30.
 * copyright(c)
 */
@ApplicationPath("/")
public class Configer extends ResourceConfig {
    public Configer() {
        System.out.println("创建配置");
        register(JacksonFeature.class);
        register(MultiPartFeature.class);
//        registerInstances(new LoggingFilter(Logger.getLogger(Configer.class.getName()), true));
    }
}
